package com.xtzn.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xtzn.mapper.IThirdPartyMapper;
import com.xtzn.mapper.entity.ThirdParty;
import com.xtzn.service.IThirdPartyService;

/**
 * 功能描述: <br>
 * **
 * 
 * @author zyw
 * @version [版本号, 2018年4月19日]
 */
@Service
public class ThirdPartyServiceImpl implements IThirdPartyService {

	@Autowired
	private IThirdPartyMapper thirdPartyDao;
	/**
	 * 功能描述: <br>
	 * **
	 *
	 * @author zyw
	 * @version [版本号, 2018年4月19日]
	 */
	@Override
	public List<ThirdParty> selectThirdPartyByPage(Integer userId, Integer skips, Integer pageSize) {
		// TODO Auto-generated method stub
		return thirdPartyDao.selectThirdPartyByPage(userId, skips, pageSize);
	}

	/**
	 * 功能描述: <br>
	 * **
	 *
	 * @author zyw
	 * @version [版本号, 2018年4月19日]
	 */
	@Override
	public ThirdParty selectThirdPartyById(Integer id) {
		// TODO Auto-generated method stub
		return thirdPartyDao.selectThirdPartyById(id);
	}

	/**
	 * 功能描述: <br>
	 * **
	 *
	 * @author zyw
	 * @version [版本号, 2018年4月19日]
	 */
	@Override
	public int deleteById(Integer id) {
		// TODO Auto-generated method stub
		return thirdPartyDao.deleteById(id);
	}

	/**
	 * 功能描述: <br>
	 * **
	 *
	 * @author zyw
	 * @version [版本号, 2018年4月19日]
	 */
	@Override
	public int deleteBatchById(List<Integer> list) {
		// TODO Auto-generated method stub
		return thirdPartyDao.deleteBatchById(list);
	}

	/**
	 * 功能描述: <br>
	 * **
	 *
	 * @author zyw
	 * @version [版本号, 2018年4月19日]
	 */
	@Override
	public int insertThirdParty(ThirdParty thirdParty) {
		// TODO Auto-generated method stub
		return thirdPartyDao.insertThirdParty(thirdParty);
	}

	/**
	 * 功能描述: <br>
	 * **
	 *
	 * @author zyw
	 * @version [版本号, 2018年4月19日]
	 */
	@Override
	public int updateThirdParty(ThirdParty thirdParty) {
		// TODO Auto-generated method stub
		return thirdPartyDao.updateThirdParty(thirdParty);
	}

	/**
	 * 功能描述: <br>
	 * **
	 *
	 * @author zyw
	 * @version [版本号, 2018年4月19日]
	 */
	@Override
	public Integer selectCount(Integer userId) {
		// TODO Auto-generated method stub
		return thirdPartyDao.selectCount(userId);
	}

	/**
	 * 功能描述: <br>
	 * **
	 *
	 * @author zyw
	 * @version [版本号, 2018年4月19日]
	 */
	@Override
	public List<ThirdParty> selectAllThirdParty(Integer userId) {
		// TODO Auto-generated method stub
		return thirdPartyDao.selectAllThirdParty(userId);
	}

}
